CC = gcc
CFLAGS = -Iinclude -Wall -g
SRCS = $(wildcard src/*.c)

all: server client

server: src/server.c src/platform.c src/threadpool.c src/queue.c
	$(CC) $(CFLAGS) -o server src/server.c src/platform.c src/threadpool.c src/queue.c -lpthread

client: src/client.c src/client_io.c
	$(CC) $(CFLAGS) -o client src/client.c src/client_io.c -lpthread

concurrency_test: tests/concurrency_test.c src/platform.c
	$(CC) $(CFLAGS) -o concurrency_test tests/concurrency_test.c src/platform.c -lpthread

clean:
	rm -f server client *.o
